package KK.Pack
{
	import flash.utils.ByteArray;

	public class Pack
	{
		public function Pack()
		{
		}
		
		static public function Compress(filename:String,data:ByteArray):ByteArray
		{
			var result:ByteArray;
			result=data;
			result.position=0;
			result.writeInt(filename.length);
			result.writeMultiByte(filename,'utf-8');
			return result;
		}
	}
}